package com.bbkb.user.remoting.impl;

import com.bbkb.common.exception.BaseException;
import com.bbkb.common.page.PageResult;
import com.bbkb.user.dto.SysUserDTO;
import com.bbkb.user.remoting.ISysUserRemoting;
import com.bbkb.user.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @功能
 * @作者 沈飞超
 * @日期 2020年09月28日 5:24
 */
@Service("sysUserRemoting")
public class SysUserRemotingImpl implements ISysUserRemoting {

    @Autowired
    private ISysUserService sysUserService;

    @Override
    public SysUserDTO getByUserName(String userName) {
        return sysUserService.getByUserName(userName);
    }

    @Override
    public PageResult<SysUserDTO> querySysUserPage(SysUserDTO userDTO) throws BaseException{
        return sysUserService.querySysUserPage(userDTO);
    }

    @Override
    public void updateStatus(Long id, String status) throws BaseException{

    }

    @Override
    public SysUserDTO getSysUserById(Long id) throws BaseException{
        return null;
    }

    @Override
    public void addSysUser(SysUserDTO sysUser) throws BaseException{

    }

    @Override
    public void updateSysUser(SysUserDTO sysUser) throws BaseException{

    }

    @Override
    public List<SysUserDTO> getSysUsersByRoleId(Long roleId) throws BaseException{
        return null;
    }
}
